package com.springdoor.goods.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.springdoor.common.annotation.Excel;
import com.springdoor.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 店铺商品关联对象 sprd_goods_shop
 *
 * @author llshs
 * @date 2024-12-04
 */
public class SprdGoodsShop extends SprdGoodsMain {

    private static final long serialVersionUID = 1L;

    /** 店铺商品关联id */
    private String gshopId;

    /** 部门ID */
    private Long deptId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String deptName;

    /** 部门族级 */
    private String ancestors;

    /** 商品图片地址 */
    private String image;

    /** 创建时间 */
    @Excel(name = "上架时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date putonTime;

    public void setGshopId(String gshopId)
    {
        this.gshopId = gshopId;
    }

    public String getGshopId()
    {
        return gshopId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getAncestors() {
        return ancestors;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }

    @Override
    public String getImage() {
        return image;
    }

    @Override
    public void setImage(String image) {
        this.image = image;
    }

    public Date getPutonTime() {
        return putonTime;
    }

    public void setPutonTime(Date putonTime) {
        this.putonTime = putonTime;
    }

    @Override
    public String toString() {

        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("gshopId", getGshopId())
                .append("deptId", getDeptId())
                .append("deptName", getDeptName())
                .append("ancestors", getAncestors())
                .append("image", getImage())
                .append("goodsId", getGoodsId())
                .append("putonTime", getPutonTime())
                .append("gNumber", getgNumber())
                .append("goodsName", getGoodsName())
                .append("assNumber", getAssNumber())
                .append("brandId", getBrandId())
                .append("typeId", getTypeId())
                .append("price", getPrice())
                .append("stockQuantity", getStockQuantity())
                .append("imageId", getImageId())
                .append("image", getImage())
                .append("orderNum", getOrderNum())
                .append("assort", getAssort())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("remark", getRemark())
                .append("sprdGoodsConfigList", getSprdGoodsConfigList())
                .toString();
    }
}
